package cn.org.eshow.webapp.action.response;

import cn.org.eshow.model.Withdraw;

import java.util.Date;

/**
 * 提现记录返回对象
 */
public class WithdrawResponse {

    private Integer id = 0;// 提现记录ID
    private Date addTime = new Date();// 添加时间
    private String way = "";//提现方式
    private Double price = 0.0;// 金额
    private Integer state = 0;// 状态0提现中，1已成功，-1失败
    private String remark = "";// 备注

    public WithdrawResponse() {

    }

    public WithdrawResponse(Withdraw obj) {
        this.setId(obj.getId());
        this.setAddTime(obj.getAddTime());
        this.setWay(obj.getWay());
        this.setPrice(obj.getPrice());
        this.setState(obj.getState());
        this.setRemark(obj.getRemark() == null ? "" : obj.getRemark());
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Date getAddTime() {
        return addTime;
    }

    public void setAddTime(Date addTime) {
        this.addTime = addTime;
    }

    public String getWay() {
        return way;
    }

    public void setWay(String way) {
        this.way = way;
    }

    public Double getPrice() {
        return price;
    }

    public void setPrice(Double price) {
        this.price = price;
    }

    public Integer getState() {
        return state;
    }

    public void setState(Integer state) {
        this.state = state;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }
}
